package com.oj.ojcodesandbox.security;

import java.security.Permission;

/**
 * 禁用所有权限 安全管理器
 */
public class DefaultSecurityManager extends SecurityManager{

    // 检查所有权限
    @Override
    public void checkPermission(Permission perm){
        throw new SecurityException("权限异常" + perm.toString());
    }

}
